package ioc06;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2022-11-23 9:20
 * Description：<描述>
 */
public class Test {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("ioc06/spring.xml");

        System.out.println(ac.getBean("springBean"));

        // System.out.println(ac.getBean("userController"));

        ac.registerShutdownHook();

    }
}
